<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %> 
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

    <h1>사용자 생성</h1>

<form:form commandName="user">
  <table>
     <tr>
        <td>userId :</td>
        <td><form:input path="userId" /></td>
     </tr>
     <tr>
        <td>password :</td> 
        <td><form:password path="password" /></td>
     </tr>
     <tr>
        <td>sex :</td>
        <td><form:radiobutton path="sex" value="M" label="남자" /> 
            <form:radiobutton path="sex" value="F" label="여자" /></td>
     </tr>
     <tr>
        <td>주소</td>
        <td><form:select path="address" items="${address}">
            </form:select></td>
     </tr>
     <tr>
        <td>hobby :</td>
        <td><form:checkboxes path="hobby" items="${interest}" /></td>
     </tr>
     <tr>
        <td>Note :</td>
        <td><form:textarea path="comment" rows="3" cols="20"></form:textarea></td>
     </tr>
   </table>
   <input type="submit" value="submit"/>
</form:form>
